<template>
  <div class="binding">
    <div class="binding-content">
      <div class="binding-header-img"></div>
      <div class="binding-header-text">绑定成功</div>
      <div class="binding-header-information">
        兑换及使用相关问题，请致电橙谊科技客服专线4000-769-669客服工作时间为9:00-18:00（包含周六日）
      </div>
      <div class="binding-footer">
        <div class="binding-footer-btn" @click="onBackHome">返回首页</div>
        <div class="binding-footer-btn" @click="onNavOrder">兑换记录</div>
      </div>
    </div>
  </div>
</template>
<script>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'

export default {
  setup() {
    const router = useRouter()

    const onBackHome = () => {
      router.push({ path: '/' })
    }
    const onNavOrder = () => {
      router.push({ path: '/order' })
    }

    onMounted(async () => {
      document.title = '绑定成功'
    })

    return {
      onBackHome,
      onNavOrder
    }
  }
}
</script>
<style lang="less">
.binding {
  margin: 0;
  padding: 0;
  .binding-content {
    .binding-header-img {
      background-image: url(../../assets/bind-success.png);
      background-size: 100% 100%;
      width: 135px;
      height: 155px;
      margin: auto;
      margin-top: 87px;
    }
    .binding-header-text {
      width: 132px;
      text-align: center;
      margin-top: 29px;
      font-size: 22px;
      font-family: PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 56px;
      margin: auto;
    }
    .binding-header-information {
      width: 85%;
      font-size: 12px;
      font-family: PingFang SC;
      font-weight: 400;
      color: #333333;
      line-height: 20px;
      margin-top: 39px;
      margin: auto;
    }
    .binding-footer {
      width: 80%;
      margin: auto;
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
      width: 80%;
      .binding-footer-btn {
        background-image: url(../../assets/bind-btn.png);
        background-size: 100% 100%;
        width: 125px;
        height: 40px;
        font-size: 16px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #333333;
        line-height: 32px;
        text-align: center;
      }
    }
  }
}
</style>
